export const openLinkUrl = (appUrl, openType="") => {
  if(window.em && window.localStorage.emobile_ec_id) {
    window.em.checkJsApi("openLink") && window.em.openLink({
      url: appUrl,
      openType: openType || 2,
      sysId: window.localStorage.emobile_ec_id,
      error: function (error) {
        alert(JSON.stringify(error));
      }
    })
      !window.em.checkJsApi("openLink") && window.open(appUrl);
  } else {
    window.open(appUrl);
  }
}